# coding=utf-8
from unittest import TestCase
from co_http.co_curl import CoCurl

__author__ = 'linzh'


class CoCurlTest(TestCase):
    def test_get(self):
        """
        测试curl的GET请求
        """

        # 获取RESTful请求者
        # RESTfulCreator.getRequester('curl')
        coCurl = CoCurl('127.0.0.1', 5000)
        print coCurl.get('/')
